package com.AuthServer.service;

import com.AuthServer.common.Result;
import com.AuthServer.config.baseconfig.OpenFeignConfig;
import com.AuthServer.pojo.entity.Teacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "TeacherInfoServer",path = "/s1/teacher",configuration = OpenFeignConfig.class)
public interface TeacherService {

    @GetMapping(value = "/getOne",params = "teacher_id")
    Result<Teacher> getOne(@RequestParam String teacher_id);

}
